Method for controlling display of touchscreen, and mobile device

ABSTRACT

A method for controlling display of a touchscreen, and a mobile device are presented, which relate to the field of electronic device technologies, so that the mobile device can control to zoom-in or zoom-out displayed content on the touchscreen according to received information about two touches. The method in the present disclosure includes receiving first touch information, where the first touch information comprises a first touch position; receiving second touch information, where the second touch information comprises a second touch position; determining zooming times according to a distance between the first touch position and the second touch position; and zooming displayed content on the touchscreen according to a position relationship between the first touch position and the second touch position and the zooming times. The present disclosure is applicable to a mobile device.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.15/101,531, filed on Jun. 3, 2016, which is a National Stage ofInternational Application No. PCT/CN2013/088690, filed on Dec. 5, 2013,both of which are hereby incorporated by reference in their entireties.

TECHNICAL FIELD

The present disclosure relates to the field of mobile devicetechnologies, and in particular, to a method for controlling display ofa touchscreen, and a mobile device.

BACKGROUND

At present, more mobile devices (such as a mobile phone and a tabletcomputer) use a touchscreen, and when using these mobile devices to viewcontent such as an image, or a map, people often need to zoom-in orzoom-out the content to facilitate viewing. When people need a mobiledevice to perform a zoom-in or zoom-out function, a method generallyused is placing two fingers on a touch-control touchscreen, so that themobile device simultaneously receives signals from two touch points;zooming in or zooming out content displayed on the touchscreen accordingto changes in signal movement directions of the two touch points; andcontrolling zoom-in or zoom-out times using a signal movement distanceof the two touch points.

The prior art has at least the following disadvantages. In the foregoingsolution, using changes of the simultaneously received signals of thetwo touch points, the mobile device controls to zoom-in or zoom-out thecontent displayed on the touchscreen and the zoom in or zoom out times.However, when controlling to zoom-in or zoom-out the content displayedon the touchscreen, the mobile device needs to simultaneously receivethe signals from the two touch points and detect change status of thetwo signals, and a processing process is complex, which reduces workingefficiency of the mobile device.

SUMMARY

Embodiments of the present disclosure provide a method for controllingdisplay of a touchscreen, and a mobile device, which can resolve aproblem that a processing process is complex, and working efficiency isreduced when the mobile device controls to zoom-in or zoom-out displayedcontent on the touchscreen.

To achieve the foregoing objective, the following technical solutionsare provided in the embodiments of the present disclosure.

According to a first aspect, an embodiment of the present disclosureprovides a method for controlling display of a touchscreen of a mobiledevice, including receiving first touch information, where the firsttouch information includes a first touch position; receiving secondtouch information, where the second touch information includes a secondtouch position; determining zooming times according to a distancebetween the first touch position and the second touch position; andzooming displayed content on the touchscreen according to a positionrelationship between the first touch position and the second touchposition and the zooming times.

With reference to the first aspect, in a first possible implementationmanner of the first aspect, before the receiving second touchinformation, the method further includes dividing a display area of thetouchscreen into a first display area and a second display areaaccording to the first touch position, where a boundary between thefirst display area and the second display area passes the first touchposition; or dividing a display area of the touchscreen into fourquadrants using the first touch position as an origin, where twoquadrants in the four quadrants serve respectively as the first displayarea and the second display area; and the zooming displayed content onthe touchscreen according to a position relationship between the firsttouch position and the second touch position and the zooming timesincludes, when the second touch position is located in the first displayarea, zooming in the displayed content on the touchscreen according tothe position relationship; or when the second touch position is locatedin the second display area, zooming out the displayed content on thetouchscreen according to the position relationship.

With reference to the first aspect, in a second possible implementationmanner of the first aspect, the zooming displayed content on thetouchscreen according to a position relationship between the first touchposition and the second touch position and the zooming times furtherincludes determining a first difference and a second differenceaccording to coordinates of the first touch position and coordinates ofthe second touch position, where the first difference is a differencebetween a horizontal coordinate of the first touch position and ahorizontal coordinate of the second touch position, and the seconddifference is a difference between a vertical coordinate of the firsttouch position and a vertical coordinate of the second touch position;and zooming the displayed content on the touchscreen according to thefirst difference, the second difference, and the zooming times.

With reference to the second possible implementation manner of the firstaspect, in a third possible implementation manner of the first aspect,the method includes, when both the first difference and the seconddifference are positive, zooming in the displayed content on thetouchscreen; or when both the first difference and the second differenceare negative, zooming out the displayed content on the touchscreen; orwhen both the first difference and the second difference are negative,zooming in the displayed content on the touchscreen; or when both thefirst difference and the second difference are positive, zooming out thedisplayed content on the touchscreen.

With reference to the second possible implementation manner of the firstaspect, in a fourth possible implementation manner of the first aspect,the method includes, when the first difference is positive and thesecond difference is negative, zooming in the displayed content on thetouchscreen; or when the first difference is negative and the seconddifference is positive, zooming out the displayed content on thetouchscreen; or when the first difference is negative and the seconddifference is positive, zooming in the displayed content on thetouchscreen; or when the first difference is positive and the seconddifference is negative, zooming out the displayed content on thetouchscreen.

With reference to the first possible implementation manner of the firstaspect or the second possible implementation manner of the first aspect,in a fifth possible implementation manner of the first aspect, thezooming displayed content on the touchscreen according to a positionrelationship between the first touch position and the second touchposition and the zooming times includes wholly zooming in the displayedcontent on the touchscreen; or partially zooming in the displayedcontent on the touchscreen.

With reference to the fifth possible implementation manner of the firstaspect, in a sixth possible implementation manner of the first aspect,the zooming the displayed content on the touchscreen in part includeszooming in or zooming out a circular display area that uses the firsttouch position or the second touch position as a center and uses apreset length as a radius; or zooming a display area of a closed graphthat uses the first touch position or the second touch position as acenter and uses a preset length as a circumference.

With reference to the first aspect or any possible implementation mannerof the first aspect, in a seventh possible implementation manner of thefirst aspect, the determining zooming times according to a distancebetween the first touch position and the second touch position includesdetermining the distance according to the coordinates of the first touchposition and the coordinates of the second touch position; anddetermining a ratio of the distance to a preset distance, anddetermining the ratio as the zooming times, where the distance isgreater than or equal to the preset distance; or directly determiningthe zooming times according to the distance, where a correspondencebetween the distance and the zooming times is preset.

With reference to the seventh possible implementation manner of thefirst aspect, in an eighth possible implementation manner of the firstaspect, the preset distance is a minimum distance for distinguishing thefirst touch position and the second touch position as two differentpositions.

With reference to the first aspect or any possible implementation mannerof the first aspect, in a ninth possible implementation manner of thefirst aspect, a time interval between a moment for receiving the firsttouch information and a moment for receiving the second touchinformation is less than a preset time.

According to a second aspect, an embodiment of the present disclosureprovides a mobile device, including a receiving unit configured toreceive first touch information, where the first touch informationincludes a first touch position; where the receiving unit is furtherconfigured to receive second touch information, where the second touchinformation includes a second touch position; a determining unitconfigured to determine zooming times according to a distance betweenthe first touch position and the second touch position; and a zoomingunit configured to zoom displayed content on the touchscreen accordingto a position relationship between the first touch position and thesecond touch position and the zooming times.

With reference to the second aspect, in a first possible implementationmanner of the second aspect, the mobile device further includes adividing unit configured to divide a display area of the touchscreeninto a first display area and a second display area according to thefirst touch position, where a boundary between the first display areaand the second display area passes the first touch position; or thedividing unit, further configured to divide a display area of thetouchscreen into four quadrants using the first touch position as anorigin, where two quadrants in the four quadrants serve respectively asthe first display area and the second display area; and the zooming unitis configured to, when the second touch position is located in the firstdisplay area, zoom-in the displayed content on the touchscreen accordingto the position relationship; or when the second touch position islocated in the second display area, zoom-out the displayed content onthe touchscreen according to the position relationship.

With reference to the second aspect, in a second possible implementationmanner of the second aspect, the zooming unit includes a differencedetermining subunit configured to determine a first difference and asecond difference according to coordinates of the first touch positionand coordinates of the second touch position, where the first differenceis a difference between a horizontal coordinate of the first touchposition and a horizontal coordinate of the second touch position, andthe second difference is a difference between a vertical coordinate ofthe first touch position and a vertical coordinate of the second touchposition; and a zooming subunit configured to zoom the displayed contenton the touchscreen according to the first difference, the seconddifference, and the zooming times.

With reference to the second possible implementation manner of thesecond aspect, in a third possible implementation manner of the secondaspect, the zooming subunit is configured to, when both the firstdifference and the second difference are positive, zoom-in the displayedcontent on the touchscreen; or when both the first difference and thesecond difference are negative, zoom-out the displayed content on thetouchscreen; or when both the first difference and the second differenceare negative, zoom-in the displayed content on the touchscreen; or whenboth the first difference and the second difference are positive,zoom-out the displayed content on the touchscreen.

With reference to the second possible implementation manner of thesecond aspect, in a fourth possible implementation manner of the secondaspect, the zooming subunit is configured to, when the first differenceis positive and the second difference is negative, zoom-in the displayedcontent on the touchscreen; or when the first difference is negative andthe second difference is positive, zoom-out the displayed content on thetouchscreen; or when the first difference is negative and the seconddifference is positive, zoom-in the displayed content on thetouchscreen; or when the first difference is positive and the seconddifference is negative, zoom-out the displayed content on thetouchscreen.

With reference to the first possible implementation manner of the secondaspect or the second possible implementation manner of the secondaspect, in a fifth possible implementation manner of the second aspect,the zooming unit further includes a whole zooming subunit configured towholly zoom-in the displayed content on the touchscreen; or a partzooming subunit configured to partially zoom-in the displayed content onthe touchscreen.

With reference to the fifth possible implementation manner of the secondaspect, in a sixth possible implementation manner of the second aspect,the part zooming subunit is configured to zoom-in or-zoom out a circulardisplay area that uses the first touch position or the second touchposition as a center and uses a preset length as a radius; or zoom adisplay area of a closed graph that uses the first touch position or thesecond touch position as a center and uses a preset length as acircumference.

With reference to the second aspect or any possible implementationmanner of the second aspect, in a seventh possible implementation mannerof the second aspect, the determining unit includes a distancedetermining subunit configured to determine the distance according tothe coordinates of the first touch position and the coordinates of thesecond touch position; and a times determining subunit configured todetermine a ratio of the distance to a preset distance, and determinethe ratio as the zooming times, where the distance is greater than orequal to the preset distance; or the times determining subunit, furtherconfigured to directly determine the zooming times according to thedistance, where a correspondence between the distance and the zoomingtimes is preset.

With reference to the seventh possible implementation manner of thesecond aspect, in an eighth possible implementation manner of the secondaspect, the preset distance is a minimum distance for distinguishing thefirst touch position and the second touch position as two differentpositions.

With reference to the second aspect or any possible implementationmanner of the second aspect, in a ninth possible implementation mannerof the second aspect, a time interval between a moment for receiving thefirst touch information and a moment for receiving the second touchinformation is less than a preset time.

With reference to the second aspect, in a tenth possible implementationmanner of the second aspect, the mobile device includes a display unitconfigured to display the displayed content that is zoomed by thezooming unit.

In the prior art, when a mobile device controls to zoom-in or zoom-outdisplayed content on a touchscreen, a processing process is complex, anda reaction rate and working efficiency are reduced. Compared with theprior art, embodiments of the present disclosure provide a method forcontrolling display of a touchscreen, and a mobile device; in thepresent disclosure, the mobile device receives information about twotouches of a user, and obtains positions of the two touches; determinesto zoom the displayed content on the touchscreen according to thepositions of the two touches, and determines zoom in or zoom out timesaccording to a distance between the positions of the two touches. Inthis way, the mobile device only needs to sequentially receive signalsof the positions of the two touches to complete zooming control on thedisplayed content on the touchscreen. Operations are convenient, and theprocessing process is simple, which increases the working efficiency ofthe mobile device.

BRIEF DESCRIPTION OF DRAWINGS

To describe the technical solutions in the embodiments of the presentdisclosure more clearly, the following briefly describes theaccompanying drawings required for describing the embodiments. Theaccompanying drawings in the following description show merely someembodiments of the present disclosure, and a person of ordinary skill inthe art may still derive other drawings from these accompanying drawingswithout creative efforts.

FIG. 1 is a flowchart of a method according to an embodiment of thepresent disclosure;

FIG. 2A and FIG. 2B are a flowchart of a method according to anotherembodiment of the present disclosure;

FIG. 3 is a schematic diagram of a display effect of a touchscreenaccording to still another embodiment of the present disclosure;

FIG. 4 is a schematic diagram of a display effect of a touchscreenaccording to still another embodiment of the present disclosure;

FIG. 5 is a schematic diagram of a display effect of a touchscreenaccording to still another embodiment of the present disclosure;

FIG. 6 is a schematic diagram of a display effect of a touchscreenaccording to still another embodiment of the present disclosure;

FIG. 7 is a schematic diagram of a display effect of a touchscreenaccording to still another embodiment of the present disclosure;

FIG. 8 is a schematic diagram of a display effect of a touchscreenaccording to still another embodiment of the present disclosure;

FIG. 9 and FIG. 10 are schematic structural diagrams of a mobile deviceaccording to still another embodiment of the present disclosure; and

FIG. 11 is a schematic structural diagram of a mobile device accordingto still another embodiment of the present disclosure.

DESCRIPTION OF EMBODIMENTS

The following clearly describes the technical solutions in theembodiments of the present disclosure with reference to the accompanyingdrawings in the embodiments of the present disclosure. The describedembodiments are merely some but not all of the embodiments of thepresent disclosure. All other embodiments obtained by a person ofordinary skill in the art based on the embodiments of the presentdisclosure without creative efforts shall fall within the protectionscope of the present disclosure.

The terms used in the embodiments of the present disclosure are merelyfor a purpose of illustrating specific embodiments, and are not intendedto limit the present disclosure. The terms “a”, “said” and “the” ofsingular forms used in the embodiments and the appended claims of thepresent disclosure are also intended to include plural forms, unlessotherwise specified in the context clearly. It should also be understoodthat, the term “and/or” used herein indicates and includes any or allpossible combinations of one or more associated listed items.

It should be understood that, although the terms, such as “first”,“second”, and “third” may be used in the embodiments of the presentdisclosure to describe touch information, a touch position, and adisplay area, the touch information, the touch position, and the displayarea should not be limited by these terms. These terms are merely usedto differentiate the touch information, the touch position, and thedisplay area. For example, without departing from a scope of theembodiments of the present disclosure, a first display area may also bereferred to as a second display area, and similarly a second displayarea may also be referred to as a first display area.

Depending on the context, as used herein, the word “at the time of . . .” or “when . . . ” may be construed as “if”. Similarly, depending on thecontext, the phrase “when determining” may be construed as “if it isdetermined”.

An embodiment of the present disclosure provides a method forcontrolling display of a touchscreen of a mobile device, which is usedin a mobile device; as shown in FIG. 1, the method includes thefollowing steps:

101. The mobile device receives first touch information.

The mobile device receives the first touch information according to atouch instruction of a user, where the first touch information includesa first touch position.

102. The mobile device receives second touch information.

The second touch information includes a second touch position. Themobile device divides a display area of the touchscreen into a firstdisplay area and a second display area according to the first touchposition, where a boundary between the first display area and the seconddisplay area passes the first touch position; or the mobile devicedivides a display area of the touchscreen into four quadrants using thefirst touch position as an origin, where two quadrants in the fourquadrants serve respectively as a first display area and a seconddisplay area.

103. The mobile device determines zooming times according to a distancebetween a first touch position and a second touch position.

The mobile device determines the distance between the first touchposition and the second touch position according to coordinates of thefirst touch position and coordinates of the second touch position; andthen determines a ratio of the distance between the first touch positionand the second touch position to a preset distance, and determines theratio as the zooming times, where the distance between the first touchposition and the second touch position is greater than or equal to thepreset distance; or directly determines the zooming times according tothe distance between the first touch position and the second touchposition, where a correspondence between the distance between the firsttouch position and the second touch position and the zooming times ispreset. The preset distance is a minimum distance for distinguishing thefirst touch position and the second touch position as two differentpositions.

104. The mobile device zooms displayed content on a touchscreenaccording to a position relationship between the first touch positionand the second touch position and the zooming times.

Zooming the displayed content on the touchscreen means to zoom-in orzoom-out the displayed content on the touchscreen. When the second touchposition is located in the first display area, the displayed content onthe touchscreen is zoomed in according to the position relationship; orwhen the second touch position is located in the second display area,the displayed content on the touchscreen is zoomed out according to theposition relationship.

Optionally, the mobile device determines a first difference and a seconddifference according to the coordinates of the first touch position andthe coordinates of the second touch position, where the first differenceis a difference between a horizontal coordinate of the first touchposition and a horizontal coordinate of the second touch position, andthe second difference is a difference between a vertical coordinate ofthe first touch position and a vertical coordinate of the second touchposition; and zooms the displayed content on the touchscreen accordingto the first difference, the second difference, and the zooming times,where a specific process is described as follows: when both the firstdifference and the second difference are positive, zooming in thedisplayed content on the touchscreen; or when both the first differenceand the second difference are negative, zooming out the displayedcontent on the touchscreen; or when both the first difference and thesecond difference are negative, zooming in the displayed content on thetouchscreen; or when both the first difference and the second differenceare positive, zooming out the displayed content on the touchscreen; orwhen the first difference is positive and the second difference isnegative, zooming in the displayed content on the touchscreen; or whenthe first difference is negative and the second difference is positive,zooming out the displayed content on the touchscreen; or when the firstdifference is negative and the second difference is positive, zooming inthe displayed content on the touchscreen; or when the first differenceis positive and the second difference is negative, zooming out thedisplayed content on the touchscreen.

Optionally, that the mobile device zooms displayed content on atouchscreen includes wholly zooming in the displayed content on thetouchscreen, or partially zooming in the displayed content on thetouchscreen. The zooming the displayed content on the touchscreen inpart may be zooming a circular display area that uses the first touchposition or the second touch position as a center and uses a presetlength as a radius or zooming a display area of a closed graph that usesthe first touch position or the second touch position as a center anduses a preset length as a circumference.

It should be noted that, a time interval between a moment for receivingthe first touch information by the mobile device and a moment forreceiving the second touch information by the mobile device is less thana preset time.

In the prior art, a mobile device needs to simultaneously receivesignals of two touch points, and detect change status of the two signalsto control to zoom-in or zoom-out displayed content on a touchscreen.Compared with the prior art, in this embodiment of the presentdisclosure, the mobile device receives information about two touches ofa user, and obtains positions of the two touches; determines to zoom thedisplayed content on the touchscreen according to the positions of thetwo touches, and determines zooming times according to a distancebetween the positions of the two touches. This resolves a problem in theprior art that a processing process is complex, and working efficiencyis reduced when the mobile device controls to zoom the displayed contenton the touchscreen. By resolving the foregoing technical problem, themobile device only needs to sequentially receive the signals of thepositions of the two touches to complete zoom in or zoom out control onthe displayed content on the touchscreen. Operations are convenient, andthe processing process is simple, which increases the working efficiencyof the mobile device.

Another embodiment of the present disclosure provides a method forcontrolling display of a touchscreen of a mobile device, which is usedin a mobile device. Using a mobile phone having a touchscreen as anexample, as shown in FIG. 2A and FIG. 2B, the method includes thefollowing steps:

201. The mobile phone receives first touch information.

For example, after a user taps the touchscreen, a corresponding touchsensor receives information about a current touch, including a positionat which the user touches the touchscreen, which includes coordinates ofthe position on the touchscreen.

202. The mobile phone receives second touch information.

For example, after the user taps the touchscreen, the correspondingtouch sensor receives information about a current touch, including aposition at which the user touches the touchscreen, which includescoordinates of the position on the touchscreen.

It should be noted that, when the user needs to zoom displayed contenton a screen, the zooming is implemented by touching the touchscreen ofthe mobile phone twice. A time interval between moments of the two tapson the touchscreen needs to be less than a preset time, and the mobilephone does not perform zooming when the time interval between themoments of the two touches is not less than the preset time. Forexample, if the preset time is 1 seconds, when the user zooms in orzooms out the displayed content on the touchscreen, an interval betweenthe moments of the two taps on the touchscreen should be less than 1seconds.

203. The mobile phone determines a first touch position corresponding tothe first touch information, and a second touch position correspondingto the second touch information.

After the user taps the touchscreen twice, a central processing unit(CPU) of the mobile phone may acquire the coordinates of the touchpositions from the touch sensor, so as to determine the positions of thetwo touches, which are respectively denoted as the first touch positionand the second touch position.

204. The mobile phone determines whether the first touch position is thesame as the second touch position, and if the first touch position isthe same as the second touch position, perform step 205, or otherwise,perform step 206.

For example, after acquiring the coordinates of the two touch positionsof the user, the CPU determines whether the coordinates of the twopoints are the same, where if the coordinates of the two points are thesame, it indicates that the two touches occur in a same position, andstep 205 is performed; or if the coordinates of the two points aredifferent, it indicates that the two touches occur in differentpositions, and step 206 is performed.

205. The mobile phone zooms-in or zooms-out displayed content on thetouchscreen according to a current display state of the touchscreen.

For example, when the user touches a same position twice, the mobilephone determines to-be-executed operation content according to thecurrent display state of the touchscreen. If the touchscreen is in azoomed-in state currently, the mobile phone performs a zoom-outoperation to zoom-out current displayed content on the touchscreen to anoriginal state; or if the touchscreen is in a zoomed-out statecurrently, the mobile phone performs a zoom-in operation to zoom-in thecurrent displayed content on the touchscreen to the original state; orif the touchscreen is in the original state currently, the mobile phoneperforms a zoom-in operation to zoom-in the current displayed content onthe touchscreen to a maximum state.

206. The mobile phone calculates a distance between the first touchposition and the second touch position.

After acquiring the coordinates of the two touch positions, the mobilephone may calculate the distance between the two touch positionsaccording to a distance formula for two points in a plane. For example,if the coordinates of the first touch position are (a, b), and thecoordinates of the second touch position are (c, d), the distance is√{square root over ((a−c)²+(b−d)²)}.

207. The mobile phone determines zooming times according to a calculateddistance.

It should be noted that, a preset distance may be set in the mobilephone, where the preset distance is a minimum distance fordistinguishing the first touch position and the second touch position astwo different positions, and the calculated distance is greater than orequal to the preset distance.

After obtaining the distance between the two touch positions bycalculation, the mobile phone calculates a ratio of the distance betweenthe two touch positions to the preset distance, and an obtained ratio isthe zooming times for zooming in or zooming out the content on thetouchscreen.

Optionally, a correspondence between the distance between the two touchpositions and the zooming times may be preset in the mobile phone; afterobtaining the distance between the two touch positions by calculation,the mobile phone directly determines the zooming times according to thecorrespondence between the distance between the two touch positions andthe zooming times; or after obtaining the distance between the two touchpositions by calculation, the mobile phone determines a ratio of thedistance between the two touch positions to horizontal coordinates ofthe two touch positions, or a ratio of the distance between the twotouch positions to a difference between vertical coordinates of the twotouch positions, and determines the ratio as the zooming times.

208. The mobile phone divides a display area of the touchscreenaccording to the first touch position.

The mobile phone determines, in the display area of the touchscreenaccording to the first touch position of the user, a boundary thatpasses the first touch position of the user, where a shape of theboundary may be preset. The boundary divides the touchscreen into twoareas, which are respectively determined as a zoom-in area and azoom-out area. The boundary is divided into two parts according to thefirst touch position of the user, where one part of the boundarycorresponds to the zoom-in area, and the other part of the boundarycorresponds to the zoom-out area.

Optionally, a virtual boundary may be preset on the touchscreen in themobile phone according to use habits of most users. The boundarydetermined after the first touch of the user has a same variation trendwith the virtual boundary.

For example, on a screen of a touchscreen mobile phone shown in FIG. 3,a line 2 is a set virtual boundary, a point 1 is a first touch positionof a user, and a line 1 is a boundary that is determined by the mobilephone and passes the point 1, where the boundary parallels to thevirtual boundary. The boundary divides the touchscreen into two parts;in this embodiment of the present disclosure, it is set that a rightside of the boundary and an upper side of the point 1 on the boundaryare a zoom-in area, and a left side of the boundary and a lower side ofthe point 1 on the boundary are a zoom-out area.

Optionally, the mobile phone may further divide a display area of thetouchscreen into four quadrants using the first touch position as anorigin, where two quadrants in the four quadrants serve respectively asa first display area and a second display area.

209. The mobile phone determines to-be-executed operation contentaccording to an area in which the second touch position is located.

After designating the boundary, the mobile phone determines arelationship between the second touch position of the user and theboundary, so as to determine the area in which the second touch positionis located, and then determines the to-be-executed operation contentaccording to the area in which the second touch position is located; andthen step 212 is performed.

For example, on a screen of a touchscreen mobile phone shown in FIG. 4,a point 2 is the second touch position. As shown in FIG. 4, the point 2is on the boundary and is located on the upper side of the point 1; itmay be learned from the zoom-in area and zoom-out area determined instep 208 that, the point 2 is located in the zoom-in area, the mobilephone performs a zoom-in operation, and step 212 is performed. As shownin FIG. 5, a point 2 is located on the right side of the boundary; itmay be learned from the zoom-in area and zoom-out area determined instep 208 that, the point 2 is located in the zoom-in area, the mobilephone performs a zoom-in operation, and step 212 is performed. As shownin FIG. 6, a point 2 is located on the left side of the boundary; it maybe learned from the zoom-in area and zoom-out area determined in step208 that, the point 2 is located in the zoom-out area, the mobile phoneperforms a zoom-out operation, and step 212 is performed.

Optionally, after the zooming times are obtained by calculation in step207, methods described in step 210 and step 211 may be further performedto determine the to-be-executed operation content of the mobile phone.

210. The mobile phone calculates a difference between horizontalcoordinates of the first touch position and the second touch positionand a difference between vertical coordinates of the first touchposition and the second touch position.

The difference between horizontal coordinates is calculated according tothe horizontal coordinate of the first touch position and the horizontalcoordinate of the second touch position, and the difference betweenvertical coordinates is calculated according to the vertical coordinateof the first touch position and the vertical coordinate of the secondtouch position.

211. The mobile phone determines the to-be-executed operation contentaccording to the difference between horizontal coordinates and thedifference between vertical coordinates.

For example, if the coordinates of the first touch position is (a, b),and the coordinates of the second touch position is (c, d), thedifference between horizontal coordinates and the difference betweenvertical coordinates are calculated. When a−c≥0 and b−d≥0, a zoom-inoperation is performed on the displayed content on the touchscreen; orwhen a−c≤0 and b−d≤0, a zoom-out operation is performed on the displayedcontent on the touchscreen; or when a−c≥0 and b−d≥0, a zoom-outoperation is performed on the displayed content on the touchscreen; orwhen a−c≤0 and b−d≤0, a zoom-in operation is performed on the displayedcontent on the touchscreen; or when a−c<0 and b−d>0, a zoom-in operationis performed on the displayed content on the touchscreen; or when a−c>0and b−d<0, a zoom-out operation is performed on the displayed content onthe touchscreen; or when a−c>0 and b−d<0, a zoom-in operation isperformed on the displayed content on the touchscreen; or when a−c<0 andb−d>0, a zoom-out operation is performed on the displayed content on thetouchscreen.

212. The mobile phone zooms-in or zooms-out the displayed content on thetouchscreen according to the calculated zooming times and the determinedoperation content.

The mobile phone uses the ratio calculated in step 207 as the zoom-in orzoom-out times, and zooms in the displayed content on the touchscreenaccording to the operation content determined in step 209 or step 211.

Optionally, the zoom-in or zoom-out performed by the mobile phone on thedisplayed content on the touchscreen may be wholly zoom-in or zoom-out,or partially zoom-in or zoom-out. Partially zooming in or zooming outthe displayed content on the touchscreen may be zooming in or zoomingout a circular display area that uses the first touch position or thesecond touch position as a center and uses a preset length as a radius;or zooming in or zooming out a display area of a closed graph that usesthe first touch position or the second touch position as a center anduses a preset length as a circumference.

For example, as shown in FIG. 7, 1 is a state of original display on thescreen of the mobile phone, and 2 is a state after the mobile phonewholly zooms in the displayed content on the touchscreen; as shown inFIG. 8, 1 is a state of original display on the screen of the mobilephone, and 3 is a state after the mobile phone partially zooms in thedisplayed content on the touchscreen.

In the prior art, a mobile phone needs to simultaneously receive signalsof two touch points, and detect change status of the two signals tocontrol to zoom-in or zoom-out displayed content on a touchscreen.Compared with the prior art, in this embodiment of the presentdisclosure, the mobile phone receives information about two touches of auser, and obtains positions of the two touches; determines to zoom in orzoom out the displayed content on the touchscreen according to thepositions of the two touches, and determines zoom-in or zoom-out timesaccording to a distance between the positions of the two touches. Thisresolves a problem in the prior art that a processing process iscomplex, and a reaction rate and working efficiency are reduced when themobile phone controls to zoom-in or zoom-out the displayed content onthe touchscreen. By resolving the foregoing technical problem, themobile phone only needs to sequentially receive the signals of thepositions of the two touches to complete zoom-in or zoom-out control onthe displayed content on the touchscreen. Operations are convenient, andthe processing process is simple, which increases working efficiency ofa mobile device.

Still another embodiment of the present disclosure provides a mobiledevice 30 for controlling display of a touchscreen; as shown in FIG. 9,the mobile device 30 includes a receiving unit 31 configured to receivefirst touch information, where the first touch information includes afirst touch position; where the receiving unit 31 is further configuredto receive second touch information, where the second touch informationincludes a second touch position; a determining unit 32 configured todetermine zooming times according to a distance between the first touchposition and the second touch position; and a zooming unit 33 configuredto zoom displayed content on the touchscreen according to a positionrelationship between the first touch position and the second touchposition and the zooming times.

Further, as shown in FIG. 10, the mobile device 30 further includes adividing unit 34 configured to divide a display area of the touchscreeninto a first display area and a second display area according to thefirst touch position, where a boundary between the first display areaand the second display area passes the first touch position; or thedividing unit 34, further configured to divide a display area of thetouchscreen into four quadrants using the first touch position as anorigin, where two quadrants in the four quadrants serve respectively asthe first display area and the second display area.

The zooming unit 33 is configured to, when the second touch position islocated in the first display area, zoom in the displayed content on thetouchscreen according to the position relationship; or when the secondtouch position is located in the second display area, zoom out thedisplayed content on the touchscreen according to the positionrelationship.

Further, as shown in FIG. 10, the zooming unit 33 includes a differencedetermining subunit 331 configured to determine a first difference and asecond difference according to coordinates of the first touch positionand coordinates of the second touch position, where the first differenceis a difference between a horizontal coordinate of the first touchposition and a horizontal coordinate of the second touch position, andthe second difference is a difference between a vertical coordinate ofthe first touch position and a vertical coordinate of the second touchposition; and a zooming subunit 332 configured to zoom the displayedcontent on the touchscreen according to the first difference, the seconddifference, and the zooming times.

Further, the zooming subunit 332 is configured to, when both the firstdifference and the second difference are positive, zoom-in the displayedcontent on the touchscreen; or when both the first difference and thesecond difference are negative, zoom-out the displayed content on thetouchscreen; or when both the first difference and the second differenceare negative, zoom in the displayed content on the touchscreen; or whenboth the first difference and the second difference are positive,zoom-out the displayed content on the touchscreen.

Further, the zooming subunit 332 is configured to, when the firstdifference is positive and the second difference is negative, zoom-inthe displayed content on the touchscreen; or when the first differenceis negative and the second difference is positive, zoom-out thedisplayed content on the touchscreen; or when the first difference isnegative and the second difference is positive, zoom-in the displayedcontent on the touchscreen; or when the first difference is positive andthe second difference is negative, zoom-out the displayed content on thetouchscreen.

Further, as shown in FIG. 10, the zooming unit 33 further includes awhole zooming subunit 333 configured to wholly zoom in the displayedcontent on the touchscreen; or a part zooming subunit 334 configured topartially zoom in the displayed content on the touchscreen.

Further, as shown in FIG. 10, the part zooming subunit 334 is configuredto zoom-in or zoom-out a circular display area that uses the first touchposition or the second touch position as a center and uses a presetlength as a radius; or zoom a display area of a closed graph that usesthe first touch position or the second touch position as a center anduses a preset length as a circumference.

Further, as shown in FIG. 10, the determining unit 32 includes adistance determining subunit 321 configured to determine the distanceaccording to the coordinates of the first touch position and thecoordinates of the second touch position; and a times determiningsubunit 322 configured to determine a ratio of the distance to a presetdistance, and determine the ratio as the zooming times, where thedistance is greater than or equal to the preset distance; or the timesdetermining subunit 322, further configured to directly determine thezooming times according to the distance, where a correspondence betweenthe distance and the zooming times is preset.

Further, as shown in FIG. 10, the mobile device 30 further includes adisplay unit 35 configured to display the displayed content that iszoomed by the zooming unit 33.

The preset distance is a minimum distance for distinguishing the firsttouch position and the second touch position as two different positions.A time interval between a moment for receiving the first touchinformation and a moment for receiving the second touch information isless than a preset time.

In the prior art, a mobile device needs to simultaneously receivesignals of two touch points, and detect change status of the two signalsto control to zoom in or zoom out displayed content on a touchscreen.Compared with the prior art, in this embodiment of the presentdisclosure, a mobile device 30 receives information about two touches ofa user, and obtains positions of the two touches; determines to zoom-inor zoom-out the displayed content on the touchscreen according to thepositions of the two touches, and determines zoom-in and zoom-out timesaccording to a distance between the positions of the two touches. Thisresolves a problem in the prior art that a processing process iscomplex, and a reaction rate and working efficiency are reduced when themobile device 30 controls to zoom-in or zoom-out the displayed contenton the touchscreen. By resolving the foregoing technical problem, themobile device 30 only needs to sequentially receive the signals of thepositions of the two touches to complete zoom-in or zoom-out control onthe displayed content on the touchscreen. Operations are convenient, andthe processing process is simple, which increases the working efficiencyof the mobile device 30.

Still another embodiment of the present disclosure provides a mobiledevice for controlling display of a touchscreen; as shown in FIG. 11, amobile phone is used as an example to describe the present disclosure indetail.

It should be understood that, a mobile phone 40 shown in the diagram ismerely an example of the mobile device, and the mobile phone 40 may havemore or less parts than those shown in FIG. 11, and may combine two ormore parts or have different parts configurations. Various parts shownin FIG. 11 may be implemented in hardware including one or more signalprocessing and/or application-specific integrated circuits, in software,or in a combination of hardware and software.

Herein, the mobile phone is used as an example for specific description.FIG. 11 is a schematic structural diagram of an embodiment of a mobilephone for processing a message according to the present disclosure. Asshown in FIG. 11, the mobile phone includes a memory 41, a CPU 42, apower management chip 43, an input/output (I/O) subsystem 44, and aperipheral interface 45; these components perform communications usingone or more communications buses or a signal cable 46.

It should be noted that, the mobile phone provided in this embodiment ofthe present disclosure is merely an example of the mobile device; themobile device involved in this embodiment of the present disclosure mayhave more or less parts than those shown in FIG. 11, may combine two ormore parts, or may have different part configurations or settings.Various parts may be implemented in hardware including one or moresignal processing and/or application-specific integrated circuits, insoftware, or in a combination of hardware and software.

The following describes in detail the mobile phone provided in thisembodiment for processing a message.

Memory 41: The memory 41 may be accessed by the CPU 42, and the memory41 may include a high-speed random access memory, and may furtherinclude a non-volatile memory, such as one or more magnetic disk storagedevices, a flash device, or another volatile solid-state storage device.

I/O subsystem 44: The I/O subsystem 44 may connect an input or outputperipheral of the device, such as a touchscreen 47, to the peripheralinterface 45. The I/O subsystem 44 may include a display controller 441.

Touchscreen 47: The touchscreen 47 is an input interface and an outputinterface between the mobile device and a user, and may receive aninstruction of the user in a touch form, and display visual output tothe user.

The display controller 441 in the I/O subsystem 44 receives anelectrical signal from the touchscreen 47 or sends an electrical signalto the touchscreen 47. The touchscreen 47 detects a touch on thetouchscreen, and the display controller 441 converts the detected touchinto interaction with a user interface object displayed on thetouchscreen 47, that is, implements human-machine interaction, where theuser interface object displayed on the touchscreen 47 may be an icon forrunning a game, an icon for linking to the Internet, and the like. Itshould be noted that, the device further includes an optical mouse,where the optical mouse is a touch sensitive surface that does notdisplay the visual output, or an extension of a touch sensitive surfaceformed by the touchscreen.

The power management chip 43 is configured to supply power to andperform power management on the CPU 42, the I/O subsystem 44, and thehardware that is connected to the peripheral interface 45.

The touchscreen 47 receives first touch information and second touchinformation, where the first touch information includes a first touchposition, and the second touch information includes a second touchposition; the I/O subsystem 44 and the peripheral interface 45 transmitthe first touch information and the second touch information to the CPU42; the CPU 42 determines zooming times according to a distance betweenthe first touch position and the second touch position, and zoomsdisplayed content on the touchscreen 47 according to a positionrelationship between the first touch position and the second touchposition and the zooming times.

The preset distance is a minimum distance for distinguishing the firsttouch position and the second touch position as two different positions.A time interval between a moment for receiving the first touchinformation and a moment for receiving the second touch information isless than a preset time.

Further, the CPU 42 divides a display area of the touchscreen 47 into afirst display area and a second display area according to the firsttouch position included in the first touch information received by thetouchscreen 47, where a boundary between the first display area and thesecond display area passes the first touch position; or the CPU 42divides a display area of the touchscreen 47 into four quadrants usingthe first touch position as an origin, where two quadrants in the fourquadrants serve respectively as a first display area and a seconddisplay area.

When the second touch position is located in the first display area, theCPU 42 zooms in the displayed content on the touch screen according tothe position relationship; or when the second touch position is locatedin the second display area, the CPU 42 zooms-out the displayed contenton the touchscreen according to the position relationship.

Further, the CPU 42 determines a first difference and a seconddifference according to coordinates of the first touch position andcoordinates of the second touch position, where the first difference isa difference between a horizontal coordinate of the first touch positionand a horizontal coordinate of the second touch position, and the seconddifference is a difference between a vertical coordinate of the firsttouch position and a vertical coordinate of the second touch position;and the CPU 42 zooms the displayed content on the touchscreen 47according to the first difference, the second difference, and thezooming times.

When both the first difference and the second difference are positive,the CPU 42 zooms-in the displayed content on the touchscreen 47; or whenboth the first difference and the second difference are negative, theCPU 42 zooms-out the displayed content on the touchscreen 47; or whenboth the first difference and the second difference are negative, theCPU 42 zooms-in the displayed content on the touchscreen 47; or whenboth the first difference and the second difference are positive, theCPU 42 zooms-out the displayed content on the touchscreen 47.

Further, when the first difference is positive and the second differenceis negative, the CPU 42 zooms-in the displayed content on thetouchscreen 47; or when the first difference is negative and the seconddifference is positive, the CPU 42 zooms-out the displayed content onthe touchscreen 47; or when the first difference is negative and thesecond difference is positive, the CPU 42 zooms-in the displayed contenton the touchscreen 47; or when the first difference is positive and thesecond difference is negative, the CPU 42 zooms-out the displayedcontent on the touchscreen 47.

Optionally, the CPU 42 wholly zooms-in the displayed content on thetouchscreen 47, or the CPU 42 partially zooms-in the displayed contenton the touchscreen 47.

Further, the CPU 42 zooms a circular display area that uses the firsttouch position or the second touch position as a center and uses apreset length as a radius; or the CPU 42 zooms a display area of aclosed graph that uses the first touch position or the second touchposition as a center and uses a preset length as a circumference.

Optionally, the CPU 42 determines the distance according to thecoordinates of the first touch position and the coordinates of thesecond touch position.

Further, the CPU 42 determines a ratio of the distance to a presetdistance, and determines the ratio as the zooming times, where thedistance is greater than or equal to the preset distance; or the CPU 42directly determines the zooming times according to the distance, where acorrespondence between the distance and the zooming times is preset.

In the foregoing embodiment, the CPU 42 may be a Pentium seriesprocessor or an Itanium processor manufactured by Intel Corporation.

In the foregoing embodiment of the present disclosure, the mobile deviceincludes but is not limited to a mobile communications device, such as amobile phone, a personal digital assistant (PDA), and a tablet computer.

In the prior art, a mobile phone needs to simultaneously receive signalsof two touch points, and detect change status of the two signals tocontrol to zoom-in or zoom-out displayed content on a touchscreen.Compared with the prior art, in this embodiment of the presentdisclosure, a mobile phone 40 receives information about two touches ofa user, and obtains positions of the two touches; determines to zoom thedisplayed content on the touchscreen according to the positions of thetwo touches, and determines zooming times according to a distancebetween the positions of the two touches. This resolves a problem in theprior art that a processing process is complex, and a reaction rate andworking efficiency are reduced when the mobile phone controls to zoom-inor zoom-out the displayed content on the touchscreen. By resolving theforegoing technical problem, the mobile phone 40 only needs tosequentially receive the signals of the positions of the two touches tocomplete zoom-in or zoom-out control on the displayed content on thetouchscreen. Operations are convenient, and the processing process issimple, which increases the working efficiency of the mobile phone 40.

A mobile device for controlling display of a touchscreen according toembodiments of the present disclosure can implement the foregoingprovided method embodiments. For detailed function implementation,reference may be made to descriptions in the method embodiments, anddetails are not described herein again. A method for controlling displayof a touchscreen and a mobile device that are provided in theembodiments of the present disclosure can be applicable to a mobiledevice, but are not limited thereto.

The embodiments in this specification are all described in a progressivemanner, for same or similar parts in the embodiments, reference may bemade to these embodiments, and each embodiment focuses on a differencefrom other embodiments. Especially, a device embodiment is basicallysimilar to a method embodiment, and therefore is described briefly; forrelated parts, reference may be made to partial descriptions in themethod embodiment.

A person of ordinary skill in the art may understand that all or some ofthe processes of the methods in the embodiments may be implemented by acomputer program instructing relevant hardware. The program may bestored in a computer readable storage medium. When the program runs, theprocesses of the methods in the embodiments are performed. The storagemedium may be a magnetic disk, an optical disc, a read-only memory, arandom access memory, or the like.

The foregoing descriptions are merely specific embodiments of thepresent disclosure, but are riot intended to limit the protection scopeof the present disclosure. Any variation or replacement readily figuredout by a person skilled in the art within the technical scope disclosedin the present disclosure shall fall within the protection scope of thepresent disclosure. Therefore, the protection scope of the presentdisclosure shall be subject to the protection scope of the claims.

The invention claimed is:
 1. A mobile device, comprising: a touchscreen;one or more processors coupled to the touchscreen; and a memory coupledto the one or more processors and configured to store programming forexecution by the one or more processors, wherein the programmingincludes instructions for: receiving first touch information, whereinthe first touch information comprises a first touch position; receivingsecond touch information, wherein the second touch information comprisesa second touch position; determining whether the first touch position isthe same as the second touch position; determining an operationaccording to a current display state of the touchscreen when determiningthe first touch position is the same as the second touch position by:performing a zoom-out operation to zoom-out current displayed content onthe touchscreen to an original state when the touchscreen is in azoomed-in state currently; performing a zoom-in operation to zoom-in thecurrent displayed content on the touchscreen to the original state whenthe touchscreen is in a zoomed-out state currently; and performing azoom-in operation to zoom-in the current displayed content on thetouchscreen to a maximum state when the touchscreen is in the originalstate currently; calculating a distance between the first touch positionand the second touch position when determining the first touch positionis not the same as the second touch position; determining zooming timesaccording to the calculated distance; and displaying a displayed contenton the touchscreen according to the zooming times.
 2. The mobile deviceof claim 1, wherein displaying the displayed content on the touchscreenaccording to the zooming times comprises: dividing a display area of thetouchscreen into a first display area and a second display areaaccording to the first touch position, wherein a boundary between thefirst display area and the second display area passes the first touchposition; zooming in a displayed content on the touchscreen according toa position relationship when the second touch position is located in thefirst display area; and zooming out the displayed content on thetouchscreen according to the position relationship when the second touchposition is located in the second display area.
 3. The mobile device ofclaim 1, wherein displaying the displayed content on the touchscreenaccording to the zooming times comprises wholly zooming in the displayedcontent on the touchscreen.
 4. The mobile device of claim 1, whereindisplaying the displayed content on the touchscreen according to thezooming times comprises partially zooming in the displayed content onthe touchscreen.
 5. The mobile device of claim 4, wherein partiallyzooming in the displayed content on the touchscreen comprises zooming inor zooming out a circular display area that uses the first touchposition or the second touch position as a center and uses a presetlength as a radius.
 6. The mobile device of claim 4, wherein partiallyzooming in the displayed content on the touchscreen comprises zooming adisplay area of a closed graph that uses the first touch position or thesecond touch position as a center and uses a preset length as acircumference.
 7. The mobile device of claim 1, wherein determining thezooming times according to the calculated distance comprises:determining the distance according to coordinates of the first touchposition and the coordinates of the second touch position; determining aratio of the distance to a preset distance and setting the ratio as thezooming times when the distance is greater than or equal to the presetdistance; and directly determining the zooming times according to thedistance when a correspondence between the distance and the zoomingtimes is preset.
 8. The mobile device of claim 7, wherein the presetdistance is a minimum distance for distinguishing the first touchposition and the second touch position as two different positions. 9.The mobile device of claim 1, wherein a time interval between a momentfor receiving the first touch information and a moment for receiving thesecond touch information is less than a preset time.
 10. A method forcontrolling display of a touchscreen of a mobile device, implemented bythe mobile device, comprising: receiving first touch information, thefirst touch information comprising a first touch position; receivingsecond touch information, the second touch information comprising asecond touch position; determining whether the first touch position isthe same as the second touch position; determining an operationaccording to a current display state of the touchscreen when determiningthe first touch position is the same as the second touch position by:performing a zoom-out operation to zoom-out current displayed content onthe touchscreen to an original state when the touchscreen is in azoomed-in state currently; performing a zoom-in operation to zoom-in thecurrent displayed content on the touchscreen to the original state whenthe touchscreen is in a zoomed-out state currently; and performing azoom-in operation to zoom-in the current displayed content on thetouchscreen to a maximum state when the touchscreen is in the originalstate currently; calculating a distance between the first touch positionand the second touch position when determining the first touch positionis not the same as the second touch position; determining zooming timesaccording to the calculated distance; and displaying a displayed contenton the touchscreen according to the zooming times.
 11. The method ofclaim 10, wherein displaying the displayed content on the touchscreenaccording to the zooming times comprises: dividing a display area of thetouchscreen into a first display area and a second display areaaccording to the first touch position, wherein a boundary between thefirst display area and the second display area passes the first touchposition; zooming in a displayed content on the touchscreen according toa position relationship when the second touch position is located in thefirst display area; and zooming out the displayed content on thetouchscreen according to the position relationship when the second touchposition is located in the second display area.
 12. The method of claim10, wherein displaying the displayed content on the touchscreenaccording to the zooming times comprises wholly zooming in the displayedcontent on the touchscreen.
 13. The method of claim 10, whereindisplaying the displayed content on the touchscreen according to thezooming times comprises partially zooming in the displayed content onthe touchscreen.
 14. The method of claim 13, wherein partially zoomingin the displayed content on the touchscreen comprises zooming in orzooming out a circular display area that uses the first touch positionor the second touch position as a center and uses a preset length as aradius.
 15. The method of claim 13, wherein partially zooming in thedisplayed content on the touchscreen comprises zooming a display area ofa closed graph that uses the first touch position or the second touchposition as a center and uses a preset length as a circumference. 16.The method of claim 10, wherein determining the zooming times accordingto the calculated distance comprises: determining the distance accordingto coordinates of the first touch position and the coordinates of thesecond touch position; determining a ratio of the distance to a presetdistance and setting the ratio as the zooming times when the distance isgreater than or equal to the preset distance; and directly determiningthe zooming times according to the distance when a correspondencebetween the distance and the zooming times is preset.
 17. The method ofclaim 16, wherein the preset distance is a minimum distance fordistinguishing the first touch position and the second touch position astwo different positions.
 18. The method of claim 10, wherein a timeinterval between a moment for receiving the first touch information anda moment for receiving the second touch information is less than apreset time.